public class FarmMachineContext {
    private FarmMachineState state;

    public void setState(FarmMachineState state) {
        this.state = state;
    }

    public void request() {
        if (state != null) {
            state.handle();
        }
    }
}